﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.facebook.events {
    import flash.events.*;
    import com.facebook.data.*;
    import com.facebook.errors.*;

    public class FacebookEvent extends Event {

        public static const PERMISSIONS_LOADED:String = "permissionsLoaded";
        public static const LOGOUT:String = "logout";
        public static const CONNECT:String = "connect";
        public static const VERIFYING_SESSION:String = "verifyingSession";
        public static const WAITING_FOR_LOGIN:String = "waitingForLogin";
        public static const PERMISSION_CHANGE:String = "permissionChanged";
        public static const PERMISSION_STATUS:String = "permissionStatus";
        public static const LOGIN_SUCCESS:String = "loginSuccess";
        public static const ERROR:String = "facebookEventError";
        public static const PERMISSIONS_WINDOW_SHOW:String = "permissionsWindowShow";
        public static const LOGIN_FAILURE:String = "loginFailure";
        public static const LOGIN_WINDOW_SHOW:String = "loginWindoShow";
        public static const COMPLETE:String = "complete";

        public var success:Boolean;
        public var error:FacebookError;
        public var hasPermission:Boolean;
        public var data:FacebookData;
        public var permission:String;

        public function FacebookEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:FacebookData=null, _arg6:FacebookError=null, _arg7:String="", _arg8:Boolean=false){
            this.success = _arg4;
            this.data = _arg5;
            this.error = _arg6;
            this.permission = _arg7;
            this.hasPermission = _arg8;
            super(_arg1, _arg2, _arg3);
        }
        override public function toString():String{
            return (formatToString("FacebookEvent", "type", "success", "data", "error"));
        }
        override public function clone():Event{
            return (new FacebookEvent(type, bubbles, cancelable, this.success, this.data, this.error));
        }

    }
}//package com.facebook.events 
